import request from '@/utils/request'

// 用户管理接口
export const getActivityList = (page,limit,from) => {
    return request({
        url: '/api/avtivity/'+page+"/"+limit,
        method: 'get',
        params:from
    })
}

export const getUpdateActivityState = (id) => {
    return request({
        url: '/api/getUpdateActivityState/'+id,
        method: 'get'
    })
}

export const getDeleteActivity = id =>{
    return request({
        url: '/api/getDeleteActivity/'+id,
        method: 'get',
    })
}

export const getAddActivity = from =>{
    return request({
        url: '/api/getAddActivity',
        method: 'post',
        data:from
    })
}
